package com.motong.gongdan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.motong.gongdan.entity.AssemblyWorkOrder;
import com.motong.gongdan.vo.system.AssemblyWorkOrder.query.AssemblyListQuery;
import com.motong.gongdan.vo.system.AssemblyWorkOrder.vo.AssemblyListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AssemblyWorkOrderMapper extends BaseMapper<AssemblyWorkOrder> {

    /**
     * @param page  分页条件
     * @param query 查询条件
     * @return 装配工单列表数据
     */
    Page<AssemblyListVo> getList(Page<AssemblyWorkOrder> page, @Param("query") AssemblyListQuery.QueryData query);


    /**
     * @param assemblyId 装配工单id
     * @return 单条记录导入数据
     */
    Map<String, Object> getExportData(@Param("assemblyId") String assemblyId);

    /**
     * @param assemblyId 装配工单id
     * @return 获取导入数据列表
     */
    List<Map<String, Object>> getExportDataList(@Param("assemblyId") String assemblyId);

}